package com.five.reader.service;

import com.five.pojo.Reader;
import com.five.reader.vo.ReaderVO;

public interface ReaderService {
    
    ReaderVO getReaderInfo(Long readerId);
    
    boolean updateReaderInfo(Reader reader);
    
    boolean updateLastLoginTime(Long readerId);
    
    ReaderVO getReaderByUsername(String username);
    
    ReaderVO getReaderByPhone(String phone);
    
    ReaderVO getReaderByEmail(String email);
    
    boolean updatePassword(Long readerId, String newPassword, String salt);
    
    boolean updateStatus(Long readerId, Integer status);
    
    boolean deleteReader(Long readerId);

}